classdef spyfilt_flip < spyview_filter
   properties (Constant=true)
       name='Flip';
       description='Flip the data along a dimension';
       parameters=struct('name',{'X','Y','Z'},'type',{'bool','bool','bool'},'default',{0,0,0});
   end
   methods
       function [pm,px,py]=filter(sf,pm,px,py)
           if sf.values{1}
               pm=fliplr(pm);
               px=px(end:-1:1);
           end
           if sf.values{2}
               pm=flipud(pm);
               py=py(end:-1:1);
           end
           if sf.values{3}
               pm=-pm;
           end
       end
   end
end